//
//  secShopDetailTableViewCell.m
//  YiFei
//
//  Created by yangyan on 16/9/14.
//  Copyright © 2016年 yous. All rights reserved.
//

#import "secShopDetailTableViewCell.h"

@implementation secShopDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addView2];
    }
    return self;
}

-(void)addView2{
    self.label=[[UITextField alloc] init];
    self.label.textColor=[UIColor blackColor];
    [self.label sizeToFit];
    self.label.font=[UIFont systemFontOfSize:14.0];
    self.label.textAlignment=NSTextAlignmentCenter;
    self.label.layer.masksToBounds=YES;
    self.label.layer.cornerRadius=5.0;
    self.label.layer.borderWidth=1.0;
    self.label.layer.borderColor=[UIColor blueColor].CGColor;
    self.label.frame=CGRectMake(5, 5, 90, 30);
    [self.contentView addSubview:self.label];
    
    UIView *lineV=[[UIView alloc] init];
    [lineV sizeToFit];
    lineV.backgroundColor=[UIColor colorWithRed:234/255.0 green:234/255.0 blue:234/255.0 alpha:1.0];
    lineV.frame=CGRectMake(0,40, WIDTH, 1);
    [self.contentView addSubview:lineV];
    
    self.textF=[[UITextField alloc] init];
    [self.textF sizeToFit];
    self.textF.font=[UIFont systemFontOfSize:14.0];
    self.textF.textColor=[UIColor lightGrayColor];
    self.textF.layer.masksToBounds=YES;
    self.textF.layer.cornerRadius=5.0;
    self.textF.layer.borderWidth=1.0;
    self.textF.layer.borderColor=[UIColor blueColor].CGColor;
    self.textF.frame=CGRectMake(CGRectGetMaxX(self.label.frame)+10, 5, WIDTH-CGRectGetMaxX(self.label.frame)-60, 30);
    [self.contentView addSubview:self.textF];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
